package com.atguigu.gmall.user.controller;

import com.atguigu.gmall.common.result.Result;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class UserController {

    @RequestMapping("/login.html")
    public String loginToOriginUrl(@RequestParam("originUrl") String originUrl,
                                   Model model) {
        model.addAttribute(originUrl);
        return "login.html";
    }
}
